package main;

public class Main 
{
	public static void main(String[] args)
	{
		String str = new String("ABCDEFG");
		System.out.println(str.indexOf('F'));
		System.out.println(str.substring(2,5));
	}
}
